package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NMaterielDevice;
import com.ruoyi.zhgd.domain.bo.NMaterielDeviceBo;
import com.ruoyi.zhgd.domain.vo.NMaterielDeviceVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 地磅Mapper接口
 *
 * @author zyb
 * @date 2023-09-18
 */
public interface NMaterielDeviceMapper extends BaseMapperPlus<NMaterielDeviceMapper, NMaterielDevice, NMaterielDeviceVo> {

    @DataPermission({
        @DataColumn(key = "deptName", value = "t2.dept_id"),
    })
    List<NMaterielDeviceVo> materielDeviceList(Page page,@Param("params") Map<String, Object> params);

    @DataPermission({
        @DataColumn(key = "deptName", value = "p.dept_id"),
    })
    List<Map> listAll(@Param("bo") NMaterielDeviceBo bo);

    @DataPermission({
        @DataColumn(key = "deptName", value = "p.dept_id"),
    })
    List<NMaterielDeviceVo> codeList(@Param("bo") NMaterielDeviceBo bo);
}
